﻿<%@ Page Title="Hóspedes presentes" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="ListarHospedes.aspx.cs" Inherits="TCC_Hotel.Apresentacao.FluxoHospedesAgora.ListarHospedes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Scripts/Mascaras.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="title-telas">
        Hóspedes presentes</p>
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="0">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:UpdateProgress ID="updateProgress" runat="server">
                <ProgressTemplate>
                    <div style="position: fixed; text-align: center; height: 100%; width: 100%; top: 0;
                        right: 0; left: 0; z-index: 9999999; background-color: #000000; opacity: 0.7;">
                        <asp:Image ID="imgUpdateProgress" runat="server" ImageUrl="~/Imagens/loading.gif"
                            AlternateText="Loading ..." ToolTip="Loading ..." Style="padding: 10px; position: fixed;
                            top: 45%; left: 50%;" />
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:TextBox onkeyup="formataTexto(this,event,'Aaa');" ID="txtBusca" runat="server"></asp:TextBox>
            <asp:Button ID="btnBusca" runat="server" Text="Buscar" OnClick="btnBusca_Click" />
            <asp:Button ID="btnLimpar" runat="server" Text="Limpar" OnClick="btnLimpar_Click" />
            <asp:Label ID="lblCheckOut" runat="server" class="checkIn-checkOut"></asp:Label>
            <asp:GridView ID="grdHospedes" runat="server" AutoGenerateColumns="False" CellPadding="4"
                Width="100%" OnRowCommand="grdHospedes_RowCommand" AllowPaging="True" BackColor="White"
                BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" OnPageIndexChanging="grdHospedes_PageIndexChanging"
                PageSize="15" OnRowDataBound="grdHospedes_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID">
                        <ItemStyle HorizontalAlign="Center" Width="10px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Numero_Apartamento" HeaderText="Apto">
                        <ItemStyle HorizontalAlign="Center" Width="10px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderStyle-CssClass="ColunasNome" DataField="Nome_1" HeaderText="Nome 1">
                        <HeaderStyle CssClass="ColunasNome"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderStyle-CssClass="ColunasNome" HeaderText="Nome 2" DataField="Nome_2">
                        <HeaderStyle CssClass="ColunasNome"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderStyle-CssClass="ColunasNome" DataField="Nome_3" HeaderText="Nome 3">
                        <HeaderStyle CssClass="ColunasNome"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderStyle-CssClass="ColunasNome" DataField="Nome_4" HeaderText="Nome 4">
                        <HeaderStyle CssClass="ColunasNome"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderStyle-CssClass="ColunasNome" DataField="Nome_5" HeaderText="Nome 5">
                        <HeaderStyle CssClass="ColunasNome"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Data de entrada" DataField="Data_Entrada">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Data de saída" DataField="Data_Saida" DataFormatString="{0:dd/MM/yyyy} ">
                        <ItemStyle HorizontalAlign="Center" />
                        <ItemStyle Font-Overline="False" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:ButtonField CommandName="contaReserva" HeaderText="Conta" Text="Conta">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                    <asp:ButtonField HeaderText="Estender estadia" Text="Estender" CommandName="extenderEstadia">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                    <asp:ButtonField CommandName="efetuarCheckOut" HeaderText="Check-out" Text="Check-out">
                        <ItemStyle HorizontalAlign="Center" Width="65px" />
                    </asp:ButtonField>
                    <asp:ButtonField CommandName="trocarCelular" HeaderText="Celular SMS" Text="Celular">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <HeaderStyle BackColor="#4B6C9E" Font-Bold="True" ForeColor="white" BorderColor="#4B6C9E"
                    BorderStyle="Double" BorderWidth="1px" />
                <PagerSettings LastPageText="&gt;&gt;" Mode="NextPreviousFirstLast" NextPageText="Próximo"
                    Position="TopAndBottom" PreviousPageText="Anterior" />
                <PagerStyle BackColor="White" ForeColor="#003399" HorizontalAlign="Center" BorderColor="#4B6C9E"
                    BorderStyle="None" />
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />
            </asp:GridView>
            <br />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
